body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f9;
}

.navbar {
    background: linear-gradient(45deg, #2980b9, #6dd5fa);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar input[type="checkbox"] {
    display: none;
}

.navbar .menu-icon {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}

.navbar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.sidebar {
    background: linear-gradient(45deg, #2980b9, #6dd5fa);
    color: white;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    width: 25%;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.profile-img {
    /* 调整图片大小 */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 20px;
    animation: fadeIn 1s ease;
    object-fit: cover;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info {
    margin-top: 30px;
}

.contact-info p {
    margin: 10px 0;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #bdc3c7;
}

.skills-sidebar {
    margin-top: 40px;
    text-align: left;
}

.skills-sidebar h2 {
    border-bottom: 2px solid white;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.skills-sidebar ul {
    list-style-type: none;
    padding: 0;
}

.skills-sidebar ul li {
    margin-bottom: 10px;
}

.main-content {
    /* 调整主内容区域的宽度和边距 */
    width: 75%;
    margin-left: 25%;
    padding: 40px;
}

.section {
    background-color: white;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 5px solid #2980b9;
    animation: slideIn 1s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section:hover {
    transform: translateY(-5px);
}

.section h2 {
    border-bottom: 3px solid #2980b9;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #2980b9;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #2980b9;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-date {
    position: absolute;
    left: -90px;
    top: 0;
    color: #7f8c8d;
}

.timeline-content {
    padding: 20px;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
}

.project {
    margin-bottom: 30px;
}

.project h3 {
    margin-bottom: 10px;
    color: #2980b9;
}

.project-details {
    border: 1px solid #ecf0f1;
    padding: 20px;
    border-radius: 8px;
}

footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(45deg, #2980b9, #6dd5fa);
    color: white;
}

@media (max-width: 768px) {
    .navbar .menu-icon {
        display: block;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(45deg, #2980b9, #6dd5fa);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .navbar ul li {
        margin: 0;
    }

    .navbar ul li a {
        padding: 15px 20px;
        text-align: center;
    }

    .navbar input[type="checkbox"]:checked + ul {
        display: flex;
    }

    .sidebar {
        position: static;
        width: 100%;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }
}    